﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

namespace SistemaAcademico.Util
{
    public class Transfer
    {
        public static void TransferListItem(ref ListBox origem, ref ListBox destino)
        {
            if (origem.SelectedIndex >= 0)
            {
                destino.Items.Add(origem.SelectedItem);
                origem.Items.Remove(origem.SelectedItem);
                destino.SelectedIndex = -1;
                origem.SelectedIndex = -1;
            }
        }
    }
}